package com.squirrel.michale;

/**
 * @author guanhao 观浩
 * @version 1.0.0.0
 * @createTime 2023/2/10 8:00 PM
 * @company Michale Squirrel
 * @link
 * @description
 */
public class TreeNode {

    public int val;
    public TreeNode left;
    public TreeNode right;

    public TreeNode() {}

    public TreeNode(int val) {
        this.val = val;
    }

    public TreeNode(int val, TreeNode left, TreeNode right) {
        this.val = val;
        this.left = left;
        this.right = right;
    }

    public Integer getVal() {

        return val;

    }

    public void setVal(int val) {

        this.val = val;

    }

    public TreeNode getleft() {

        return left;

    }

    public void setleft(TreeNode left) {

        this.left = left;

    }

    public TreeNode getright() {

        return right;

    }

    public void setright(TreeNode right) {

        this.right = right;

    }

}
